package com.ruiboyun.liveapp.util.tool;

import android.app.Activity;
import android.support.v4.app.Fragment;
import android.util.Log;

/**
 * Created by ${吴世芊} on 2016/7/8.
 * 浙江答分奇网络科技有限公司
 * 邮箱:apple9302@126.com
 * 本类功能:
 */
public class Loger {
    private static boolean debug=true;
    public static void e(String msg) {
        if (debug){
            Log.e("msg",msg);
        }

    }

    public static void e(String tag,String msg){
        if (debug){
            Log.e(tag,msg);
        }
    }

    public static void i(String tag,String msg){
        if (debug){
            Log.i(tag,msg);
        }
    }

    public static void d(Fragment fragment, String msg){
        if (debug){
            Log.d(fragment.getClass().getSimpleName(),msg);
        }
    }
    public static void d(Activity activity, String msg){
        if (debug){
            Log.d(activity.getClass().getSimpleName(),msg);
        }
    }
    public static void d(Object object, String msg){
        if (debug){
            Log.d(object.getClass().getSimpleName(),msg);
        }
    }
}
